from resource import DocLocalisationResource


def route_doclocalisation(doc_localisation_model):
    """
    Redirects the primary model to resources
    :param doc_localisation_model: (hash binary file) the primary NER model for predictions
    :return: endpoint
    """
    doc_localisation = DocLocalisationResource(doc_localisation_model)
    return '/document/localisation', doc_localisation
